// 核心包初始化

package models

import (
	"api/common/orm"
)

// 初始化数据表
func init() {
	orm.RegisterModelWithPrefix(
		"basic_",
		new(Menu),
		new(User),
		new(Role),
		new(Record),
		new(Resource),

		new(Special),

		new(GlobalSet),
	)

	orm.RegisterModelWithPrefix(
		"student_",
		new(Info),
		new(OperateRecord),
	)

	orm.RegisterModelWithPrefix(
		"info_",
		new(Content),
		new(Notice),
		new(Image),
	)
}
